package com.tencreat.domain.account;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author huang wei
 * @version 1.0
 * @date 2021/12/21 21:14
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("account_wait_balance")
public class AccountWaitBalance extends BaseEntity<AccountWaitBalance> {
    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "用户uuid")
    @ApiModelProperty(value = "用户uuid")
    @TableField("`uuid`")
    private Long uuid;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    @ApiModelProperty(value = "订单号")
    @TableField("`order_sn`")
    private String orderSn;


    /**
     * 金额
     */
    @Excel(name = "金额")
    @ApiModelProperty(value = "金额")
    @TableField("`amount`")
    private BigDecimal amount;


    /**
     * 1拼团 2砍价
     */
    @Excel(name = "1拼团 2砍价")
    @ApiModelProperty(value = "1拼团 2砍价")
    @TableField("`type`")
    private Integer type;

    /**
     * 1拼团 2砍价
     */
    @Excel(name = "是否完成 1是")
    @ApiModelProperty(value = "是否完成 1是")
    @TableField("`is_over`")
    private Boolean isOver;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /**
     * 租户ID
     */
    @Excel(name = "租户ID")
    @ApiModelProperty(value = "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    @TableField("`remarks`")
    private String remarks;


}
